package com.work.cloudseata.repository;

import com.work.cloudseata.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRoleRepository extends JpaRepository<UserRole, Long> {

    UserRole findByUserId(Long userId);

    List<UserRole> findByRoleId(Integer roleId);
}
